﻿#include "FITKAcousticsFEFace.h"
#include "FITKAcousticsTriangles.h"

namespace Acoustics
{

    FITKAcousticsFEFace::FITKAcousticsFEFace()
    {
        //创建三角形管理器
        _triMesh = new FITKAcousticsTriangles;
    }

    FITKAcousticsFEFace::~FITKAcousticsFEFace()
    {
        //销毁对象
        if (_triMesh) delete _triMesh;
    }

    FITKAcousticsTriangles* FITKAcousticsFEFace::getTriangleMesh()
    {
        //获取三角形列表
        return _triMesh;
    }

    QList<int> FITKAcousticsFEFace::getNodeIDs() const
    {
        //获取全部节点id
        return _triMesh->getAllNodeIDs();
    }

    bool FITKAcousticsFEFace::isContainsNode(const int id) const
    {
        //是否包含点
        QList<int> nodeIDs = this->getNodeIDs();
        return nodeIDs.contains(id);
    }
}


